<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>

<%@page import="com.wzw.tcjh.CustomerTools"%>
<%@page import="java.util.Set"%>
<%@page import="java.util.HashSet"%><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>汇丰晋信天才儿童的添财计划—天才基因早发现</title>
<link href="css/main.css" media="screen" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {color: #eb1a11}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
	function submitForm(){
		document.testForm.submit();
	}
</script>
</head>
<% 
	String tempUname = request.getParameter("uname");
	String tempPhone = request.getParameter("phone");
	String tempEmail = request.getParameter("email");
	
	if(!"Y".equals(session.getAttribute("userAdd"))){
		if(tempUname==null||tempPhone==null||tempEmail==null){
			response.sendRedirect("index.jsp");
			return;
		}
		
		String uname = new String(tempUname.getBytes("iso-8859-1"),"utf-8");
		String phone = new String(tempPhone.getBytes("iso-8859-1"),"utf-8");
		String email = new String(tempEmail.getBytes("iso-8859-1"),"utf-8");
		
		try{
			session.setAttribute("userAdd", "Y");
			CustomerTools.addCustomer(uname, phone, email,"1");
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
	Set<String> resultSet = (Set<String>)session.getAttribute("resultSet");
	if(resultSet==null){
		resultSet = new HashSet<String>();
		session.setAttribute("resultSet", resultSet);	
	}
	for(int i = 10; i <= 20; i++){
		resultSet.remove(String.valueOf(i));
	}
	String[] results = request.getParameterValues("test");
	if(results!=null && results.length > 0){
		for(String result : results){
			resultSet.add(result);
		}
	}
	System.out.println("resultSet1="+resultSet);
%>
<body>
<div class="head">
  <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','950','height','222','src','images/top','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','wmode','transparent','movie','images/top' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="950" height="222">
    <param name="movie" value="images/top.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="images/top.swf" width="950" height="222" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
</noscript></div>
<div class="top">
  <form name="testForm" method="post" action="zjcy-2.jsp">	
  <div class="nav">
    <div class="nav01"><a href="<%="Y".equals(session.getAttribute("userAdd"))?"zjcy-1.jsp":"zjcy.jsp"%>" class="demo">直接参与</a></div>
    <div class="nav02"><a href="jxsz.jsp" class="demo">奖项设置</a></div>
    <div class="nav02"><a href="cyff.jsp" class="demo">参与方法</a></div>
    <div class="nav02"><a href="lhjy.jsp" class="demo">联合基因</a></div>
    <div style="clear:both;"></div>
  </div>
  <div class="top_left02">
    <span class="STYLE1">想知道您孩子在8大才能方面是否具备天赋或潜能吗？<br/>勾出下述您的孩子在日常生活中具备的表现（多选），即可做出大致判断。 </span>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2"><strong>语言才能</strong>        </td>
      </tr>
      <tr>
        <td width="26"><label>
          <input type="checkbox" name="test" value="1" id="checkbox" <%=resultSet.contains("1")?"checked":""%>/>
        </label></td>
        <td>1、善于用语言描述所听到的各种声响。 </td>
      </tr>
      <tr>
        <td valign="bottom"><input type="checkbox" name="test" value="2" id="checkbox2" <%=resultSet.contains("2")?"checked":""%>/></td>
        <td rowspan="2">2、常给孩子朗读的故事，要是你更换了里面的某个词， 孩子就会说读错了，并加以纠正。</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><input type="checkbox" name="test" value="3" id="checkbox3" <%=resultSet.contains("3")?"checked":""%>/></td>
        <td>3、喜欢对人讲故事，而且讲得绘声绘色。 </td>
      </tr>
      <tr>
        <td colspan="2"><strong>逻辑数理才能</strong></td>
      </tr>
    </table>
  </div>
  <div class="top_right02">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     
      <tr>
        <td width="26"><label>
          <input type="checkbox" name="test" value="4" id="checkbox4" <%=resultSet.contains("4")?"checked":""%>/>
        </label></td>
        <td>4、喜欢提些怪问题，如人为什么不会飞等等。</td>
      </tr>
      <tr>
        <td><input type="checkbox" name="test" value="5" id="checkbox5" <%=resultSet.contains("5")?"checked":""%>/></td>
        <td>5、喜欢把玩具分门别类，按大小或颜色放在一起。</td>
      </tr>
      
      <tr>
        <td colspan="2"><strong>音乐才能</strong></td>
      </tr>
      <tr>
        <td><input type="checkbox" name="test" value="6" id="checkbox6" <%=resultSet.contains("6")?"checked":""%>/></td>
        <td>6、喜欢伴随乐器的弹奏唱歌。</td>
      </tr>
      <tr>
        <td valign="bottom"><input type="checkbox" name="test" value="7" id="checkbox7" <%=resultSet.contains("7")?"checked":""%>/></td>
        <td rowspan="2">7、喜欢倾听各种乐器发出的声音，并能根据声响准确地判断出是什么乐器。</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><input type="checkbox" name="test" value="8" id="checkbox8" <%=resultSet.contains("8")?"checked":""%>/></td>
        <td>8、能准确地记忆电视里经常播放的乐曲。</td>
      </tr>
      <tr>
        <td colspan="2"><strong>丰富的空间想像能力</strong></td>
      </tr>
      <tr>
        <td><label>
          <input type="checkbox" name="test" value="9" id="checkbox9" <%=resultSet.contains("9")?"checked":""%>/>
        </label></td>
        <td>9、善于辨别方向，极少迷路。</td>
      </tr>
    </table>
  </div>
  <div style="clear:both;"></div>
  </form>
  <div class="foot"><a href="javascript:submitForm()"><img src="images/icon02.png"  border="0" /></a></div>
</div>
</body>
</html>
